<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>KCMS</title>
<jsp:include page="../iframecommon.jsp"></jsp:include>
<script type="text/javascript">

function myCheck()
{
	  
	  var inputs = document.getElementsByName('checkbox');
	  var isChecked = false;
	  for (var i = 0, l = inputs.length; i < l; i++) {
	      if (inputs[i].checked == true) {
	          isChecked = true;
	      }
	  }
	  if (!isChecked) {
		alert('至少选择一个班级');
	  	return false;
	  	}
	  
	 
   
   return true;
  
}

</script>
</head>
<body>

<div class="col-lg-2"></div>
<div class="col-lg-8">
<div class="main-box">
<header class="main-box-header clearfix">
<h1>课件上传</h1>
</header>
<div class="alert alert-success">
<i class="fa fa-check-circle fa-fw fa-lg"></i>
请先选择需要上传的课程班级
</div>






<form action="course_submitCourseList" method="post" onsubmit="return myCheck()">
<div class="alert alert-info">
<i class="fa fa-check-circle fa-fw fa-lg"></i>
请选择班级

<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th><span></span></th>
<th><span>课程号</span></th>
<th><span>课序号</span></th>
<th><span>课程名</span></th>
<th><span>课程描述</span></th>
<th><span>学分</span></th>
<th><span>课程属性</span></th>
<th><span>周次</span></th>
<th><span>时间</span></th>
<th><span>上课地点</span></th>
</tr>
</thead>
<tbody>
<s:iterator value="cr" status="cid">
   <tr>
   	  <td>
   	  <div class="checkbox-nice">
		<input type="checkbox" name="checkbox" value="<s:property value='sn'/>" id="<s:property value='sn'/>">
		<label for="<s:property value='sn'/>"></label>
	  </div>
   	  </td>
      <td><s:property value="cid" /></td>
      <td><s:property value="csn" /></td>
      <td><s:property value="cname" /></td>
	  <td><s:property value="description" /></td>
      <td><s:property value="xuefen" /></td>
      <td><s:property value="properties" /></td>
      <td><s:property value="week" /></td>
      <td><s:property value="time" /></td>
      <td><s:property value="location" /></td>
   </tr>
</s:iterator>


</tbody>
</table>
<input type="submit" class="btn btn-success" value="下一步"/>
<input type="reset" class="btn btn-default" value="重置"/>
</div>
</div>
</form>

</body>
</html>